<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:c="http://xmlns.jcp.org/jsf/composite"
	xmlns:p="http://primefaces.org/ui">

<ui:decorate template="/jsp/WEB/pageLayout.xhtml">
	<ui:define name="centro">

		<h:form>
			<p:growl id="msgs" showDetail="true" />

			<p:panel id="ResumoGeral" header="Resumo Geral" footer="Resumo Geral do dia"
				width="500px">
				<p:dataTable id="tbMaster" style="margin-top:2%; width:60%;"
					value="#{dashboardBean.dataMaster}" var="item"
					rowIndexVar="rowIndex" emptyMessage="Nenhum registro encontrado!">

					<p:column headerText="Total" style="font-size:10px">
						<h:outputText value="Por pedidos" />
					</p:column>

					<p:column headerText="Qtde. Pedidos" style="font-size:10px">
						<h:outputText value="#{item.qtdePedidos} " />
					</p:column>

					<p:column headerText="Qtde. Produtos" style="font-size:10px">
						<h:outputText value="#{item.qtdeProdutos} " />
					</p:column>

					<p:column headerText="Valor Total R$" style="font-size:10px">
						<h:outputText value="#{item.preco}">
							<f:convertNumber locale="pt_BR" currencyCode="BRL"
								minFractionDigits="2" />
						</h:outputText>
					</p:column>
				</p:dataTable>
			</p:panel>
			<br />
			<p:panel id="ResumoMes" header="Resumo Anual" footer="Comparativo com ano anterior"
				style="margin-bottom:20px">
				<h:panelGrid columns="2" cellpadding="10">
					<p:lineChart xaxisLabel="Mês" yaxisLabel="Valor Total" showDatatip="true"
						value="#{dashboardBean.linearModel2}" legendPosition="nw"
						xaxisAngle="45" animate="true" style="height:200px;width: 500px;" />
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:decorate>

</html>




